package com.twh.www.service;

import com.twh.www.entity.WnAdmin;
import com.baomidou.mybatisplus.extension.service.IService;
import com.twh.www.entity.WnUser;

import java.util.List;


public interface WnAdminService extends IService<WnAdmin> {

    WnAdmin login(String account, String password);

    List<WnUser> getAllUser();

    List<WnAdmin> getAllAdmin();

    boolean freezeAdmin(Integer id);

    boolean unfreezeAdmin(Integer id);

    boolean addToBlacklistAdmin(Integer id);

    boolean removeFromBlacklistAdmin(Integer id);

    boolean deleteAdmin(Integer id);

    WnAdmin getAdminByAccount(String account); // 新增

    boolean updateAdminAccount(WnAdmin admin); // 新增

    boolean updateAdminPassword(WnAdmin admin); // 新增


    boolean save(WnAdmin admin);

}
